package com.liyongjian.apidoc.dal;

import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;

import com.liyongjian.apidoc.domain.Res;
import com.liyongjian.apidoc.domain.enumm.LiveDieState;


public interface ResRepository extends PagingAndSortingRepository<Res, Long> {

    Res findByUserIdAndNameAndApiIdAndParentId(Long userId, String name, Long apiId, Long parentId);

    List<Res> findByApiIdAndState(Long apiId, LiveDieState state);

}
